//
//  BaseRequestModel.h
//  LittleRed
//
//  Created by cnp on 17/3/29.
//  Copyright © 2017年 xinmiao. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SuccessBlock) (id json);

typedef void (^FailureBlock) (id json);

@interface BaseRequestModel : NSObject


/**
 POST请求数据(带菊花)
 */
+(void)RequestDatafromView:(UIViewController *)viewcontroller urlStr:(NSString *)urlStr  Parameter:(NSDictionary *)parameter withSuccessBlock:(SuccessBlock)successblock withFailureBlock:(FailureBlock)failureBlock;

/**
 Post请求数据(不带菊花)
 */
+(void)RequestDataWithoutHUDfromView:(UIViewController *)viewcontroller urlStr:(NSString *)urlStr  Parameter:(NSDictionary *)parameter withSuccessBlock:(SuccessBlock)successblock withFailureBlock:(FailureBlock)failureBlock;

/**
多图上传图片
 */
+(void)RequestImageWithViewcontroller:(UIViewController *)viewcontroller urlStr:(NSString *)urlStr Parm:(NSDictionary *)parm imgeDataArry:(NSArray *)imgeDataArry withSuccessBlock:(SuccessBlock)successblock;

/**
 修改用户头像
 */

+(void)UpdataUserPhotoWithViewcontroller:(UIViewController *)viewcontroller urlStr:(NSString *)urlStr parm:(NSDictionary *)parm data:(NSData *)data withSuccessBlock:(SuccessBlock)successblock;

/**
 上传视频
 */
+(void)requestVideoWithParm:(NSDictionary *)parm dataurl:(NSString *)dataurl withSuccessBlock:(SuccessBlock)successblock;






@end
